package com.xwj.client;

import com.xwj.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author xwj
 * @date 2020/7/22
 */
@Component
public class UserClient {
    @Reference(check = false)
    private UserService userService;

    public void insert() {
        System.out.println("userService.insert()");
        userService.insert();
    }
}
